package com.lixy.demo.spring4_highlight.ch2.prepost;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan( "com.lixy.demo.spring4_highlight.ch2.prepost" )
public class PrePostConfig {

	@Bean(initMethod="init",destroyMethod="destroy")
	public BeanWayService beanWayService() {
		return new BeanWayService();
	}
	
}
